<template>
  <div id="app" class="tn-body">
	  <keep-alive>
		  <router-view v-if="$route.meta.keepAlive"></router-view>
	  </keep-alive>
		<router-view :key='key' v-if="!$route.meta.keepAlive" class="router-view" ></router-view>
  </div>
</template>

<script>

export default {
  name: 'app',
  computed:{
	  key(){
		  return this.$router.path  + Math.random();
	  }
  }
}
</script>

<style>
	@import "./css/SLMComm.css";
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}

.tn-body {
	width: 100%;
	height: 100%;
	position: absolute;
	display: flex;
	flex-direction: column;
}
</style>
